
package com.zjff.myshop.front.pojo.form;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * 更改订单状态
 */
@Data
public class OrderUpdateStatusForm implements Serializable {

    @ApiModelProperty(value = "订单Id", position = 1, required = true)
    @NotNull(message = "订单Id不能为空 ")
    private Integer id;

    @ApiModelProperty(value = "状态(0待支付/1已支付/2已发货/3交易成功/-1已取消)", position = 2, required = true)
    @NotNull(message = "订单状态不能为空 ")
    @Range(min = -1, max = 3, message = "状态值范围：-1~3 ")
    private Byte status;
}
